#!/bin/sh




PRINTER="p544"
REMOTEHOST="astron.berkeley.edu"
TMPPDF="temp.$$.pdf"
TMPPS="`basename $TMPPDF pdf`ps"
TMPDIR="/tmp"
PRINTCMD="lp -d$PRINTER $TMPPS"

Title=$1
Opts=$2
File=$3


#/System/Library/Printers/Libraries/convert -f "$File" -o "$TMPDIR/$TMPPS" -j "application/postscript"
scp "$FILES" $REMOTEHOST:tmp/$FILE
echo "scp "$TMPDIR/$TMPPS" $REMOTEHOST:tmp/$TMPPS" >>/tmp/printlog
rm -f $File


exit

# 
# # Here's an applescript to prompt for a file name. 
# on open these_items
#         repeat with i from 1 to the count of these_items
#                 set this_file to item i of these_items
#                 set new_name to ""
#                 display dialog "Enter Name for this Receipt:" default answer the new_name buttons {"Cancel", "OK"} default button 2
#                 copy the result as list to {new_name, button_pressed}
#                 if button_pressed is not "Cancel" then
#                         do shell script "cp " & quoted form of POSIX path of this_file & " ~/Documents/Receipts/" & quoted form of new_name & ".pdf"
#                         beep
#                 end if
#         end repeat
# end open
